package com.zoshine.zzg.constant;

/**
 * cookie枚举
 *
 * @author 贾俊峰
 * @time 2017/7/21 10:42
 */
public enum CookieEnum {
    SERIES("series", 30 * 24 * 60 * 60),
    TOKEN("token", 30 * 24 * 60 * 60);


    //=============================
    private int maxAge;
    private String name;

    CookieEnum(final String name, final int maxAge) {
        this.name = name;
        this.maxAge = maxAge;
    }

    public int getMaxAge() {
        return maxAge;
    }

    public String getName() {
        return name;
    }

}
